package com.iotechn.unimall.data.domain;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.util.Date;

/**
 * 积分商品
 *
 * @author chen
 * @email
 * @date 2020-07-31 16:49:25
 */

@Data
@TableName("unimall_integral_goods")
public class IntegralGoodsDO extends SuperDO {

    /**
     *
     */
    /**
     * 商品名称id
     */
    @TableField("spu_id")
    private Long spuId;
    /**
     * 商品规格id
     */
    @TableField("sku_id")
    private Long skuId;
    /**
     * 商品限兑
     */
    @TableField("sku_limit")
    private Float skuLimit;
    /**
     * 积分
     */
    @TableField("integral")
    private Integer integral;
    /**
     * 优惠券id
     */
    @TableField("conpon_id")
    private Long conponId;
    /**
     * 兑换金额
     */
    @TableField("amount")
    private Integer amount;
    /**
     * 兑换规则类型(1:纯积分 2:积分+现金
     */
    @TableField("type")
    private Integer type;
    /**
     * 兑换类型  1:积分兑商品 2:积分兑优惠券 3:抽奖次数
     */
    @TableField("goods_type")
    private Integer goodsType;
    /**
     * 操作人
     */
    @TableField("admin_id")
    private Long adminId;
    /**
     * 更新时间
     */
    @TableField("gmt_update")
    private Date gmtUpdate;
    /**
     * 创建时间
     */
    @TableField("gmt_create")
    private Date gmtCreate;

    @TableField("sales")
    private Float sales;
    /**
     * 活动状态(0:未开始 1:开启 2:已结束 3:下架)
     */
    @TableField("status")
    private Integer status;

    @TableField(exist = false)
    private String goodsName;

    /**
     * 积分商品id·
     */
    @TableField(exist = false)
    private Long integerGoodsId;

    @TableField("turntable_times")
    private Integer turntableTimes;

    @TableField("igoods_imgs")
    private String igoodsImgs;

    @TableField("igoods_name")
    private String igoodsName;
}
